from django.urls import path
from . import views

urlpatterns = [
    path('', views.home, name='home'),
    path('tenant/<int:tenant_id>/forms/', views.form_list, name='form_list'),
    path('tenant/<int:tenant_id>/forms/new/', views.form_designer, name='new_form'),
    path('tenant/<int:tenant_id>/forms/<int:template_id>/edit/', views.form_designer, name='edit_form'),
    path('tenant/<int:tenant_id>/forms/save/', views.save_form_template, name='save_form_template'),
    path('form/<int:template_id>/', views.form_detail, name='form_detail'),
    path('form/<int:template_id>/delete/', views.delete_form_template, name='delete_form'),
    path('form/submission/success/<int:tenant_id>/', views.submission_success, name='submission_success'),
    path('form/<int:template_id>/submissions/', views.submission_list, name='submission_list'),
    path('submission/<int:submission_id>/', views.submission_detail, name='submission_detail'),
] 